<h2><?php echo __('Inscrição de %s', $usuario_sessao['Usuario']['nome'])?></h2>

<dl>
<dt><?php echo __('Data de inscrição')?>:</dt>
<dd><?php echo $this->Time->format('d/m/Y - H:i:s', $inscricao['Pagamento']['created']);?></dd>

<dt><?php echo __('Valor total');?>:</dt>
<dd><?php echo 'R$ '.number_format($inscricao['Pagamento']['valor_total'], 2, ',', '.');?></dd>

<dt><?php echo __('Status');?>:</dt>
<dd>
	<?php if(isset($status['Status'])){?>
		<?php echo $status['Status']['text'];?>
	<?php }else{?>
		<?php echo __('Aguardando Dados do %s', $status['PaymentGateway']['name'])?>
	<?php }?>
</dd>

<dt><?php echo __('Forma de Pagamento');?>:</dt>
<dd>
	<?php if(isset($status['PrimaryPaymentMethod'])){?>
		<?php echo $status['PrimaryPaymentMethod']['name'].' - '.$status['SecondaryPaymentMethod']['name'];?>
	<?php }else{?>
		<?php echo __('Aguardando Dados do PagSeguro')?>
	<?php }?>

</dl>
<div class=btn-group>
<?php echo $this->Html->link(__('Comprovantes'), array('controller'=>'usuarios', 'action'=>'comprovantes'), array('class'=>'btn'))?>
</div>


<h3><?php echo __('Cursos');?>:</h3>
<table class="table table-bordered table-striped">
	<tr>
		<th><?php echo __('Curso');?></th>
		<th><?php echo __('Preço');?></th>
		<th><?php echo __('Apenas material?');?></th>
	</tr>
	<?php foreach($inscricao['CursosUsuario'] as $item){?>
	<tr>
		<td><?php echo $item['Curso']['nome'];?></td>
		<td><?php echo 'R$ '.number_format($item['Curso']['preco'], 2, ',', '.');?></td>
		<td><?php echo ($item['material']) ?  'Sim' : 'Não'?></td>
	</tr>
	<?php }?>
</table>